package com.elong.spring.event;

import org.springframework.context.ApplicationListener;

public class MailSendListener implements ApplicationListener<MailSendEvent>{
    
    //对mailsendevent事件进行处理
    public void onApplicationEvent(MailSendEvent event){
	MailSendEvent mse = (MailSendEvent) event;
	System.out.println("MailSendListener: 向" + mse.getTo() + "发送完一份邮件");
    }
    
}
